import React, {Fragment} from 'react';
import {formatMessage} from 'umi/locale';
import Link from 'umi/link';
import styles from './UserLayout.less';
// import logo from '../images/xj-logo.png';
import logo from '../images/ty-logo.png';


class UserLayout extends React.PureComponent {
  // @TODO title
  getPageTitle() {
    const {routerData, location} = this.props;
    const {pathname} = location;
    let title = 'Ant Design Pro';
    if (routerData[pathname] && routerData[pathname].name) {
      title = `${routerData[pathname].name} - Ant Design Pro`;
    }
    return title;
  }

  componentDidMount() {

  }

  render() {
    const {children} = this.props;
    return (
      // @TODO <DocumentTitle title={this.getPageTitle()}>
      <div className={styles.container} >
        {children}
      </div>
      /*<div>
        {children}
      </div>*/
    );
  }
}

export default UserLayout;
